---
- name: Set common OpenShift facts
  openshift_facts:
    role: common
    local_facts:
      cluster_id: "{{ openshift_cluster_id | default('default') }}"
      debug_level: "{{ openshift_debug_level | default(0) }}"
      hostname: "{{ openshift_hostname | default(None) }}"
      ip: "{{ openshift_ip | default(None) }}"
      public_hostname: "{{ openshift_public_hostname | default(None) }}"
      public_ip: "{{ openshift_public_ip | default(None) }}"
      use_openshift_sdn: "{{ openshift_use_openshift_sdn | default(None) }}"
      sdn_network_plugin_name: "{{ os_sdn_network_plugin_name | default(None) }}"
      deployment_type: "{{ openshift_deployment_type }}"

- name: Set hostname
  hostname: name={{ openshift.common.hostname }}
